package tools;

import java.util.Random;

public class Snippet {

	public static String getRandomString(int length) {
		StringBuffer buffer = new StringBuffer("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
		StringBuffer sb = new StringBuffer();
		Random r = new Random();
		int range = buffer.length();
		for (int i = 0; i < length; i++) {
			sb.append(buffer.charAt(r.nextInt(range)));
		}
		return sb.toString();
	}
	public static void main(String[] args) {
		System.out.println(getRandomString(8));
		int height=569,width=853;
		System.out.println(height*378/width);
		         
	}
}